<style type="text/css">
  label{
    display: block;
    margin-top: 10px !important;
    margin-bottom: -10px !important;
  }  
</style>
<%= form_for(@tour_day, :html => { remote: true, id: "form_tour_day" }) do |f| %>
  <%= hidden_field_tag 'tid', params[:tid] %>
  <%= f.text_field :tour_id, {value: params[:tid]} %>
  <div class="field">
    <%= f.label :day_number %><br />
    <%= f.text_field :day_number %>
    <div id="day_number_error" class="error-message"></div>
  </div>
  <div id="ck_editors" class="field">
    <h4>Description Eng</h4>
    <%= f.cktext_area :description_eng, style: "width:80%", :ckeditor => {:language => "en", :toolbar => "full"} %>
    <div id="description_error" class="error-message"></div>
  </div><br/>
  <div id="ck_editors" class="field">
    <h4>Description Idn</h4>
    <%= f.cktext_area :description_idn, style: "width:80%", :ckeditor => {:language => "en", :toolbar => "full"} %>
    <div id="description_error" class="error-message"></div>
  </div> <br/>
  <table>
    <tr>
      <td> 
        <%= link_to 'back', tour_days_path(tid: params[:tid]), class: " btn btn-inverse", remote: true %>    
      </td>
      <td>
        <%= f.submit :class => "btn btn-primary" %>
      </td>
    </tr>
  </table>
<% end %>
